﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyWeb.ServiceBus.Model.Models
{
    /// <summary>
    /// 实体根
    /// </summary>
    public abstract class Root<T>
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        [Key]
        public T Id { get; set; }
        /// <summary>
        /// 修改人Id
        /// </summary>
        public T? UpdateUserId { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateDate { get; set; }
        /// <summary>
        /// 创建人Id
        /// </summary>
        public T? CreateUserId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; } = DateTime.Now;
    }
}
